<script setup lang="ts">

const apiPrefix = 'iaaControl'
const { state } = useTable({
  apiPrefix,
  searchColumn: [],
  queryApi: (params?: any,pageParam?:any) => {
    if(state.apiPrefix){
      return usePost(`/${state.apiPrefix}/detailInfo`,params,pageParam)
    }
  },
  afterQuery: (res) => {
    console.log(res)
    return res
  },
  _pagination:{
    column: '',
    pageSize: 999,
    pageSizeOptions: ['999']
  },
})


const columns = shallowRef([
  {
    title: '链接码',
    dataIndex: 'linkCode'
  },
  {
    title: '日期',
    dataIndex: 'timeWindow',
  },
  {
    title: '留存轮数',
    dataIndex: 'lcCount',
  },
  {
    title: '看广告次数',
    dataIndex: 'adCount'
  }
])



</script>

<template>
  <a-card>

    <a-table
        row-key="id" :row-selection="state.rowSelections" :loading="state.loading" :columns="columns"
        :data-source="state.dataSource" :pagination="state.pagination"
    >

    </a-table>
  </a-card>


</template>

<style scoped lang="less">

</style>